import { AxiosResponse } from "axios";
import type { ReturnImageInfosObj } from "../types";
import request from "./request";

const getWaterfallPicInfosList = (
  number?: number, arr?: string
): Promise<AxiosResponse<ReturnImageInfosObj>> => {
  return request({
    url: "/water_pics",
    method: "get",
    params: {
      num: number || 30,
      showPictures: arr || "[0]"
    },
  });
};

export { getWaterfallPicInfosList };
